export enum formType {
  input = 'input',
  select = 'select',
  default = '',
}

export type ISelectOption = {
  label: string;
  value: any;
};

export type IItemConfig = {
  type: formType;
  label: string;
  prop: string;
  isShow: boolean;
  // width?: number;
  placeholder?: string;
  disabled?: boolean; //默认值false
  labelWidth?: number;
  rules: Array<any>;
  options?: Array<ISelectOption>;
};

export interface IGlobleFormProps {
  inline?: boolean;
  bindData: any;
  itemWidth?: number;
  itemConfig: Array<IItemConfig>;
}
